<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
    <h:head />
    <body>
        <ui:composition>
            <h:form id="tabMenuForm" rendered="#{not empty request.remoteUser}">
                <p:tabMenu activeIndex="#{tabIndex}" style="margin-top: 3px; margin-bottom: 3px;">
                    <p:menuitem value="Trang chủ" url="/dashboard.jsf" icon="ui-icon-home"
                                rendered="#{request.isUserInRole('SYSADMIN') or request.isUserInRole('ADMIN')}"/>  
                    <p:menuitem value="Tin tức" url="/news.jsf" icon="ui-icon-note" disabled="true"/>  
                    <p:menuitem value="Lịch cơ quan" url="/schedule/company.jsf" icon="ui-icon-calendar" disabled="true"/>  
                    <p:menuitem value="Lịch công việc" url="/schedule/working.jsf" icon="ui-icon-calendar" disabled="true"/>  
                    <p:menuitem value="Công việc" url="/working.jsf" icon="ui-icon-person" disabled="true"/>
                    <p:menuitem value="Quản trị" url="/admin/home.jsf" icon="ui-icon-wrench"
                                rendered="#{request.isUserInRole('SYSADMIN') or request.isUserInRole('ADMIN')}"/>
                </p:tabMenu>
            </h:form>
        </ui:composition>
    </body>
</html>